# include "ObjectAction.h"

# include "Renderer.h"

ObjectAction::ObjectAction()
{

}

ObjectAction::~ObjectAction()
{
	if ( myEntity )
	{
		myRenderer->deleteEntity( myEntity);
	}

	if ( mySceneNode ) 
	{
		myRenderer->deleteSceneNode( mySceneNode);
	}
}

Ogre::String ObjectAction::getNodeName()
{
	return mySceneNode->getName();
}

Ogre::Vector3 ObjectAction::getPosition()
{
	return mySceneNode->getPosition();
}

ActionType ObjectAction::getActionType()
{
	return myType;
}